package com.seckill.api.config;



import com.seckill.api.client.promotion.fallback.PromotionClientFallback;
import com.seckill.api.client.trade.fallback.TradeClientFallback;
import com.seckill.api.client.user.fallback.UserClientFallback;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@EnableFeignClients(basePackages = "com.seckill.api.client")
@Configuration
public class FallbackConfig {

    @Bean
    public TradeClientFallback tradeClientFallback(){
        return new TradeClientFallback();
    }

    @Bean
    public UserClientFallback userClientFallback(){
        return new UserClientFallback();
    }



    @Bean
    public PromotionClientFallback promotionClientFallback(){
        return new PromotionClientFallback();
    }
}
